home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / comnumb.exe / README < prev    next >
Text File  |  1992-05-01  |  2KB  |  48 lines

  1.                   /////////////////////////////////////
  2.                   //  C O M P O U N D  N U M B E R S //
  3.                   /////////////////////////////////////
  4.  
  5.           Copyright(c) 1992 Azarona Software. All rights reserved.
  6.  
  7. The associated files implement a compound number class (ie., numbers
  8. consisting of a whole part, and a fractional part.) This code was
  9. created as part of work done to update my popular book "Turbo C++:
  10. A Self-Teaching Guide", B. Flamig, (John Wiley & Son's), of which
  11. a 2nd edition is in the works.
  12.  
  13. The compound numbers are implemented as a "concrete data type", 
  14. with all arithmetic and comparison operators implemented, (except
  15. for modulo "%", which I don't know to make sense of for fractions.)
  16. The numbers are kept simplified, and the notion of an "undefined"
  17. number is implemented, which is used to signal divide by zero.
  18. The code is elegant and efficient, and was written to reduce the
  19. possibility of overflows during calculations. However, overflows
  20. are not completely eliminated, and are not checked for.
  21.  
  22. The code was tested with BC++ 3.0.
  23.  
  24. You may use the files listed below freely, AS LONG AS
  25. YOU KEEP THE COPYRIGHT NOTICES INTACT.
  26.  
  27.    README         // This readme file
  28.    RATIONAL.H     // Header file for rational number class
  29.    RATIONAL.CPP   // Implementation of rational number class
  30.    COMPOUN.H      // Header file for compound number class
  31.    COMPOUN.CPP    // Implementation of compound number class
  32.    RTST.CPP       // Test program for rational numbers
  33.    RTST.MAK       // Make file to build test program
  34.    CTST.CPP       // Test program for compound numbers
  35.    CTST.MAK       // Make file to build test program
  36.  
  37. Since this code is going into a book, PLEASE REPORT ANY ERRORS 
  38. YOU FIND TO:
  39.  
  40. Bryan Flamig
  41. Azarona Software
  42. P.O. Box 768
  43. Conifer, CO  80433
  44.  
  45. FAX: (303) 697-1728
  46. CS:  [73057,3172]
  47. BIX: bflamig
  48.